const rules = (data) => {
    data.forEach(i => {
        if (i.required) {
            console.log('commonRules=', commonRules)
            i.rules = commonRules.common.phone
        }
    })
    return data
}
import commonRules from '@/utils/validate.js'
export default rules